import Vue from "vue";
import App from "./App.vue";
import VueRouter from "vue-router";
import router from "./router/index";
import "./styles/reset.css";
// 引入icon的样式
import "./styles/iconfont.css";
import TypeNav from "./components/TypeNav/index";
import Carousel from  "./components/Carousel"
import Pagination from './components/Pagination'
import store from "./store/index";

import './mock'



Vue.config.productionTip = false;
Vue.use(VueRouter);

// 配置全局组件
Vue.component("TypeNav", TypeNav);
// 注册轮播图的全局组件Carousel
Vue.component("Carousel",Carousel);
Vue.component("Pagination",Pagination);


new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
